Quantifying safety in the partially observable environment: application to autonomous vehicles