Nick Jonas on why 'Kingdom' came along at a pivotal time in his life