A figure of merit assessment of the routes to hydrogen