Development and demonstration of the WEC-Sim wave energy converter simulation tool