Local structure and dynamic properties of Mn substituted manganites studied by EXAFS and anelastic spectroscopy