X-ray optical depth diagnostics of T Tauri accretion shocks