Under the doctrine of ultra vires, what happens when a corporation acts beyond the scope of its stated corporate purposes?