Surface functionalization of metal-organic frameworks for improved moisture resistance