Magnetic behavior of magnesium diboride superconducting thin films