First-principles investigation of ammonia borane for hydrogen storage