A techno-economic analysis of tidal energy technology