Inferring effective interactions from the local density of states: Application to STM data from Bi2Sr2CaCu2O8+δ