Roe scheme in generalized coordinates. I - Formulations