Relativistic generalizations of gravity-induced localization models