Duality, central charges and entropy of extremal BPS black holes