Nonlinear modeling and effective design of dual-functional piezoelectric energy harvesting microgyroscopes