Gamma-ray spectral and morphological study of HESS J1912+101 observed by MAGIC and Fermi-LAT