Optimization of magnetodielectric coupling in Mn substituted BiFeO3 for potential memory devices