Deflection Angle of Photons through Dark Matter by Black Holes and Wormholes Using Gauss–Bonnet Theorem