Experimental and theoretical study of methyl n-hydroxybenzoates