The coarray approach to aperture synthesis for active and passive imaging