Photon-correlation measurements of atomic-cloud temperature using an optical nanofiber