Capacitive micromachined ultrasonic transducers with vented cavities