Reasoning about Qualitative Direction and Distance between Extended Objects using Answer Set Programming