Structure of a Folding Intermediate Reveals the Interplay Between Core and Peripheral Elements in RNA Folding