An introduction to biosystems engineering