A multi-purpose method for analysis of spur gear tooth loading