How can I determine whether I can apply for permanent residence?