Gravar-mail: Inverse photonic design of functional elements that focus Bloch surface waves