Slovakia has announced how long foreigners must live in the country before they can apply for Slovak citizenship, with applicants required to meet a residence rule.