Modal analysis for determining the size-and temperature-dependent bending rigidity of graphene