Stress state analysis of stress engineered BaTiO3 thin film by LaNiO3 bottom electrode