Certain benefits can prevent you from boosting your state pension