Solutions of third-order differential equations relevant to draining and coating flows