An earthquake of magnitude 8.2 has struck Mindanao in the Philippines, the German Research Centre for Geosciences has said.