when a coastline occurs next to the intrusion , the tide and the prevailing weather systems slowly erode the softer , surrounding rocks , leaving granite islands or headlands with embayments on either side .