Modified McCormicks model for equilibrium shorelines behind a detached breakwater