Ship which ran aground off Cork coast to be inspected