Microscopic derivation of the Bekenstein-Hawking entropy for Schwarzschild black holes