Optimal materials and process conditions of functional layers for piezoelectric MEMS process at high temperature