Fabrication of ferroelectrics based MEMS structures for electronically switchable bulk acoustic wave resonators