An unfitted finite element method, based on Nitsche's method, for elliptic interface problems