Optimal control algorithms based on energy criteria for semi-active control of bridges