Neural virtual sensors for terrain adaptation of walking machines