Optimal phasing of the European tidal stream resource using the greedy algorithm with penalty function