Determining Optical Band Gaps of MOFs