Text this: Social welfare and severity of criminal punishment