How to finance green investments? The role of public debt