Electronic transitions in KxC60 (0 ⩽ x ⩽ 6) from in situ absorption spectroscopy