Spectral asymmetry of atoms in the van der Waals potential of an optical nanofiber