Linear polarization of the hydrogen H-alpha line in filaments. I. Theoretical investigation