Text this: Performance optimization of active RIS-assisted near-shore dual-function radar communicaiton system