A mechanical model for two-dimensional cellular sandwich cores with general geometry