Finite-gap solutions of the Davey-Stewartson equations