Null geodesics for Kaluza-Klein metrics and world-lines of charged particles