A model for reliability assessment of offshore wind farms