Ultrafast changes of magnetic anisotropy driven by laser-generated coherent and noncoherent phonons in metallic films