Republica Checa, Austria y Hungría