Fine boundary properties in complex analysis and discrete potential theory