Inhomogeneous broadening of optical transitions of 87Rb atoms in an optical nanofiber trap