A smart approach to compensation studies will help your company attract and retain talent -- while avoiding stumbles that could punish you for trying to do the right thing.