Factors associated with work satisfaction of registered nurses