Detailed study of the water trimer potential energy surface