Gravar-mail: In silico and in vivo investigations using an endocavitary photoplethysmography sensor for tissue viability monitoring