A class of exact solutions for Richards' equation