Photocatalytic, electrocatalytic and photoelectrocatalytic conversion of carbon dioxide: a review