Optimal strategy analysis of two-phase n-policy gated queueing systems with server startup and breakdowns