A new three-phase algorithm for computation of reliability index and its application in structural mechanics