Radio and infrared interferometry of stellar and substellar objects