Calculation of three-dimensional flowfields by the unsteady method of characteristics