Neural-Network Decoders for Quantum Error Correction Using Surface Codes