Individual factors and perceived community characteristics in relation to mental health and mental well-being