Gravitational bending angle of light for finite distance and the Gauss-Bonnet theorem