On the interaction of internal waves and surface gravity waves