Construction of a 2-5 T class superconducting magnetic field generator with use of an Sm123 bulk superconductor and its application to high-magnetic field demanding devices