Massa, Perez released from hospital after high-speed F1 crash