An elastic fiber based on phononic crystals