Boundary-condition effects in anharmonic lattice dynamics: Existence criteria for intrinsic localized modes from extended-mode properties