create the functions bx, by and bz for spheres