Hard magnetic Nd-Fe-B and Sm-Co films: influence of the Cr buffer microstructure on the magnetic properties