Algorithms for multiaxial cycle counting method and fatigue life prediction based on the weight function critical plane under random loading