On the Performance of Continuous Aperture Array (CAPA)-Based Wireless Communications