Magnetic flux distribution and losses in narrow ferromagnetic strips