On the global well-posedness of energy-critical Schrödinger equations in curved spaces