An inverse boundary problem for the Schrödinger operator with magnetic field