Projective covers in categories of topological spaces and topological algebras