Former Army psychiatrist Nidal Hasan has asked a judge to stop his execution by firing squad for killing 13 people at Fort Hood in Texas.