The response and resolution of a fine-grain marble calorimeter for hadronic and electromagnetic showers