Intrinsic localized modes in the bulk and at the surface of anharmonic chains