A form of potential vorticity equation for depth-integrated flow with a free surface