Detroit’s bankruptcy is proof that states are calculating public pensions all wrong