Magnetization dynamics in thin films and multilayers