Energy losses in mechanically modified bacterial magnetosomes