On the Generation of Exact Solutions using the Method of Nearby Problems