A less empirical method of representing megavoltage beams for use in rapid radiotherapy dose calculations