Tuning the functionality of metal–organic frameworks (MOFs) for fuel cells and hydrogen storage applications