The identification of members of urban societies in three towns of the Royal Prussia in relation to their environment