PMUT and CMUT devices for biomedical applications