Six degrees of freedom motions of a spar platform in irregular waves