Diamondization of chemically functionalized graphene and graphene-BN bilayers.