Hydrogen atom in space with a compactified extra dimension and potential defined by Gauss' law