Linking rifted margin crustal shape with the timing and volume of magmatism