Axial component of the magnetic field produced by a straight solenoid: Application of the solid angle concept