The late Aga Khan's son has been named as his successor after the spiritual leader's will was unsealed.