Strength of octupole correlations in the actinides: Contrasting behavior in the isotones 237U and 239Pu