Harmonic maps and magnetostatic, axially symmetric solutions of the Kaluza-Klein theory