Topological conditions for the representation of preorders by continuous utilities