Near-infrared absorption spectroscopy of interstellar hydrocarbon grains