Banks, global cues help Sensex climb up 521 points