Superconducting MgB2 nanobridges and meanders obtained by an electron beam lithography-based technique on different substrates