Metal–organic frameworks for H2 and CH4 storage: insights on the pore geometry–sorption energetics relationship