How registered nurses balance limited resources in order to maintain competence: a grounded theory study