Spin filtering in a magnetic-electric barrier structure