A method to assess maritime resilience