Intermediate logics and factors of the Medvedev lattice