Quantum theory from the perspective of general probabilistic theories