Former BP engineer convicted on obstruction charge in oil spill case