Grating model predicts text contrast