Minorities in the city. The changes of the ethnic and religious identities in the 20th century